/**
 * Copyright (c) 2016-2020 qar All rights reserved.
 * <p>
 * https://www.qar.io
 * <p>
 * 版权所有，侵权必究！
 */

package io.qar.feign.fallback;

import io.qar.commons.tools.utils.Result;
import io.qar.feign.BusFltInfoFeignClient;
import io.qar.feign.DictFeignClient;
import io.qar.feign.UserFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * 字典接口 FallbackFactory
 *
 * @author Mark sunlightcs@gmail.com
 */
@Slf4j
@Component
public class BusFltInfoFeignClientFallbackFactory implements FallbackFactory<BusFltInfoFeignClient> {

    @Override
    public BusFltInfoFeignClient create(Throwable cause) {
        return new BusFltInfoFeignClient() {
            @Override
            public Result insertBatchs(String beginDate, String endDate) {
                return null;
            }
        };
    }
}
